My asp.net application saving a long list of image files and then have to view one of them. The client can browse the images, But its take a long time. I have a dictionary with key - file path and value -Image:
Dictionary<string, System.Drawing.Image> imageList = new Dictionary<string,System.Drawing.Image>();
//filling imageList
foreach (KeyValuePair<imagePath, System.Drawing.Image> item in imageList)
{
item.Value.Save(item.Key, System.Drawing.Imaging.ImageFormat.Jpeg);
}
Mark Devid
19-Dec-2014I put the images saving in thread block and it works perfectly and fast:
Anonymous User
19-Dec-2014Disk IO may be very slow, nevertheless you can try this